﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SisTransportes.Apresentacao.WebForm.Usuario.Default" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Usuários</h1>

    <!-- filtros -->
    <div class="painel_super">

        <div class="filtros">
            <div class="linha">
                <div class="campo">
                    <label for="nome">Código</label> <asp:TextBox ClientIDMode="Static" ID="TextCodigo" Text="" runat="server" Width="40" />
                </div>

                <div class="campo">
                    <span class="leg">*Filtrar por nome ou sobrenome</span>
                    <label for="nome">Nome</label> <asp:TextBox ClientIDMode="Static" ID="txtNome" Text="" runat="server" Width="200" />
                </div>
                <div class="campo">
                    <span class="leg">*Filtrar por email</span>
                    <label for="nome">E-mail</label> <asp:TextBox ClientIDMode="Static" ID="txtEmail" Text="" runat="server" Width="200" />
                </div>
                 <div class="campo">
                    <asp:Button ClientIDMode="Static" ID="Button1" Text="Pesquisar" runat="server" OnClick="FiltrarGridView_Load" />
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <!-- /filtros -->

        <!-- tabela -->
        <div class="tabelas">

            <a href="#" class="b"><img src="../Images/itens_01_2.png" width="22" height="25" alt="Novo" title="Novo" /></a>

            <asp:GridView ID="GridView1" runat="server" 
                AllowPaging="True"
                PageSize="5" 
                OnPageIndexChanging="GridView1_PageIndexChanging" 
                Width="100%" 
                GridLines="Vertical"
                AllowSorting="True" 
                AutoGenerateColumns="False" 
                ClientIDMode="Static" 
                EmptyDataRowStyle-CssClass="tabelas_empty" 
                PagerStyle-CssClass="tabelas_pager" AlternatingRowStyle-CssClass="bg_2">

                <Columns>
                     <asp:BoundField 
                            DataField="Id" 
                            HeaderText="ID" />

                    <asp:TemplateField>
                        <HeaderTemplate>Nome</HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblNome" Text='<%# DataBinder.Eval(Container.DataItem, "Nome") %>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField>
                        <HeaderTemplate>Email</HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblEmail" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField>
                        <HeaderTemplate>Status</HeaderTemplate>
                        <ItemTemplate>
                            <span class="b txt_red">inativo</span>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField>
                        <HeaderTemplate>Função</HeaderTemplate>
                        <ItemTemplate>
                            --
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderStyle-Width="5">
                        <ItemTemplate>
                            <a href="#" class="b"><img src="../Images/itens_03_2.png"width="22" height="25" alt="Editar" title="Editar" /></a>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderStyle-Width="5">
                        <ItemTemplate>
                            <a href="#" class="b"><img src="../Images/itens_02_2.png" width="22" height="25" alt="Excluir" title="Excluir" /></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>

                <EmptyDataTemplate><%=Resources.Config.config_nenhum_item_encontrado.ToString() %></EmptyDataTemplate>
           
                <PagerSettings PageButtonCount="3" 
                    FirstPageText="primeiro" LastPageText="último" NextPageText="próximo" 
                    PreviousPageText="anterior" Position="Bottom"  />
           
                <PagerStyle BackColor="#FFFFFF" HorizontalAlign="Center" />
                
            </asp:GridView>

        </div>
        <!-- /tabela -->
    </div>

    <!-- menu lateral -->
    <sistransportes:MenuLateral ID="MenuLateral1" runat="server" Sessao="config_usuarios" />
    <!-- /menu lateral -->

    <div class="clear"></div>

</asp:Content>
